<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>login</title>
</head>
<body>
    <h3 color="red" th:text="${msg}"></h3>
    <form th:action="@{/user/login}" method="post">
        姓名：<input th:type="text" th:name="username"/><br/>
        密码:<input th:type="password" th:name="password"/><br/>
            <input th:type="submit" th:value="登录"/>
    </form>

</body>
</html>